AbstractProxyModelMixin
Sub classes
| Name | Children | Inherits |
|---|---|---|
| AbstractProxyModel prettyqt.core.abstractproxymodel Base class for proxy item models that can do sorting, filtering and processing. |
|
|
| IdentityProxyModel prettyqt.core.identityproxymodel Proxies its source model unmodified. |
||
| SortFilterProxyModel prettyqt.core.sortfilterproxymodel Support for sorting and filtering data passed between another model and a view. |
||
| TransposeProxyModel prettyqt.core.transposeproxymodel This proxy transposes the source model. |
Base classes
| Name | Children | Inherits |
|---|---|---|
| AbstractItemModelMixin prettyqt.core.abstractitemmodel |
â‹” Inheritance diagram
graph TD
2431222121["core.AbstractProxyModelMixin"]
3882849576["core.AbstractItemModelMixin"]
3227531497["core.ObjectMixin"]
2751680898["builtins.object"]
3882849576 --> 2431222121
3227531497 --> 3882849576
2751680898 --> 3227531497
🛈 DocStrings
Bases: AbstractItemModelMixin
Source code in prettyqt/core/abstractproxymodel.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | |
first_item_index() -> core.ModelIndex
Return the first child of the root item.
Source code in prettyqt/core/abstractproxymodel.py
source_index_from_key(key_path: Sequence[tuple[int, int] | int], parent_index: core.ModelIndex | None = None) -> core.ModelIndex
Return a QModelIndex of the sourceModel for the given key.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key_path
|
Sequence[tuple[int, int] | int]
|
Key path to get an index for. Should be a sequence of either (row, column) or row indices |
required |
parent_index
|
ModelIndex | None
|
ModelIndex to start indexing from. Defaults to root index. |
None
|